
public class Bromine extends AbstractAtom{
	private float molWeight;
	private float atomicRadii; //radius in pm
	private float electroNeg;
	private int numOfBonds;
	private int electroCharge; //  -1 is negative, 0 is neutral, 1 is positive
	private String elementChar = "Br";
	static int MAX_BONDS = 1;
	
	
	Bromine()
	{
		molWeight = 79.904f;
		atomicRadii = 115.0f;
		electroNeg = 2.96f;
		numOfBonds = 0;
		electroCharge = -1;			
	}
	
	//Get functions

	public float getMolWeight()
	{
		return molWeight;
	}
	
	public float getAtomicRadii()
	{
		return atomicRadii;
	}
	public float getElectroNeg()
	{
		return electroNeg;
	}
	public int getNumOfBonds()
	{
		return numOfBonds;
		
	}
	public int getNumOfMaxBonds()
	{
		return MAX_BONDS;
	}
	
	//Set functions
	
	public void addBond()
	{
		numOfBonds += 1;
		//checks to see if the charge is affected
		checkElectroCharge();
	}
	
	public void removeBond()
	{
		numOfBonds -= 1;
		checkElectroCharge();
	}
	
	//Electro charge check
	
	public void checkElectroCharge()
	{
		if (numOfBonds > 1) { electroCharge = 1; }
		if (numOfBonds < 1) { electroCharge = -1; }
		if (numOfBonds == 1) { electroCharge = 0; }

	}
}
